home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Turnbull China Bikeride
/
Turnbull China Bikeride - Disc 2.iso
/
STUTTGART
/
UTIL
/
PRINTER
/
PCLTOOLS
/
PlaceRaster
/
plr.man
< prev
Wrap
Text File
|
1997-10-19
|
4KB
|
101 lines
plr - place PCL raster data on a page
=====================================
This program reads in raster data from files (multiple raster areas per
page possible; the switch -1 determines whether only the raster area of each
file will be used or all of them) and creates a ready-to-print, (multipage)
output file, placing each raster area at a user-defined position. You can use
it for instance with the output ppcl creates from sprites or Ghostview's PCL
output (for instance set the device resolution to 400dpi and print 2 up in 600dpi
mode). Works with !Printers' output, can't say about the TurboDrivers.
Use:
plr [options] <outfile> <infile_1> ... <infile_m>
Options:
--------
-f x x = format (must be given!). This has the form n:(x1,y1)...(xn,yn)
where n is the number of raster areas to put on a page (thumbnails)
and the pairs (xi,yi) give the position of the graphics origin for each
of them in pixels (note that with LJ printers y increases from top to
bottom). In case of the "-c"-switch positioning commands in the
corresponding input file will be taken relative to these values (i.e. a
graphics origin of (100,200) and in-file positioning to (400,500) will
lead to the position (500,700)). Example: if you're printing at 600dpi
and wish to print 2 raster areas on an A4 sheet of paper in landscape
mode the format would look something like this: First up the printable
size is about 7.5in x 10.5in with a 0.5in border. So the first raster
area's graphics origin should be placed at the top left corner of the
printable area (i.e. (0,0) + (300,300) (border)). The next one's graphics
origin should be in the middle of the printable area (i.e. ((10.5/2)*600,0)
+ (300,300)). So the format is
-f 2:(300,300)(3450,300)
This example is obviously only valid if there's no in-file positioning.
The PCL output of Ghostscript for instance does contain positioning
commands. I found that for 2 up printing of these at 600dpi the graphics
origins should be (300,0)(3450,0).
Don't use spaces within the actual format string!!!
-l landscape mode. Default: portrait.
-r x set resolution to x. Default: 600.
-1 use only first raster area of each file. Default: use all of them.
-c add raster area coordinates to format coordinates. Default: off.
-a x first page of output
-b x last page of output (inclusive)
-d x print every xth page
If (m > n) (i.e. more input files than thumbnails per page) are given a new
page is started.
Example:
--------
plr -l -f 2:(300,300)(3450,300) printout page1 page2
Creates a ready-to-print PCL file, printing two raster areas on one page and
setting the origins of these to (300,300) and (3450,300) respectively. The
raster data in file <page1> will be positioned relative to (300,300), the
data in file <page2> relative to (3450,300). The output file is <printout>.
If you have a printout (e.g. !Printers) at 400dpi and you want to use this
to print 2up, double-sided at 600dpi you have to do something like this:
plr -r 600 -l -f 2:(300,300)(3450,300) -d 2 odd_pages printout
plr -r 600 -l -f 2:(300,300)(3450,300) -d 2 -a 2 even_pages printout
Now you send first the file <odd_pages> to the printer, feed the resulting
pages the right way around back into your printer and then send even pages
to it.
THIS PROGRAM IS FREEWARE. YOU MAY COPY IT FREELY AS LONG AS NO PART OF IT
IS CHANGED AND IT'S NOT SOLD FOR PROFIT. I RETAIN THE COPYRIGHT.
I WILL NOT ACCEPT ANY RESPONSIBLITY FOR ANY DAMAGES CAUSED BY THE USE OF
THIS PROGRAM, IMPLICITLY OR EXPLICITLY. USE IT ENTIRELY AT YOUR OWN RISK.
Andreas Dehmel
Am Schorn 18
82327 Tutzing
Germany
dehmel@forwiss.tu-muenchen.de